import React, { Component } from 'react'
import Hello from './hello.js'
import MainContext from './context.js'
export class main extends Component {
  state = {
    msg : '爷爷组件的内容'
  }
  render() {
    return (
      <div className='z'>
        <h1>爷爷组件</h1>
        index
        <MainContext.Provider value={this.state.msg}>
        <Hello></Hello>
        </MainContext.Provider>
        </div>
    )
  }
}

export default main